import request from '@/utils/request'

// 查询设备绑定列表
export function listLathe(query) {
  return request({
    url: '/gelly/lathe/list',
    method: 'get',
    params: query
  })
}

// 查询设备绑定详细
export function getLathe(deviceId) {
  return request({
    url: '/gelly/lathe/' + deviceId,
    method: 'get'
  })
}

// 新增设备绑定
export function addLathe(data) {
  return request({
    url: '/gelly/lathe',
    method: 'post',
    data: data
  })
}

// 修改设备绑定
export function updateLathe(data) {
  return request({
    url: '/gelly/lathe',
    method: 'put',
    data: data
  })
}

// 删除设备绑定
export function delLathe(deviceId) {
  return request({
    url: '/gelly/lathe/' + deviceId,
    method: 'delete'
  })
}
